package com.store.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * User entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "user", catalog = "depot")
public class User implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer UId;
	private String ULoginname;
	private String UName;
	private String UPassword;
	private String UTel;
	private String USex;
	private String UMail;

	// Constructors

	/** default constructor */
	public User() {
	}

	/** full constructor */
	public User(String ULoginname, String UName, String UPassword, String UTel,
			String USex, String UMail) {
		this.ULoginname = ULoginname;
		this.UName = UName;
		this.UPassword = UPassword;
		this.UTel = UTel;
		this.USex = USex;
		this.UMail = UMail;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "u_id", unique = true, nullable = false)
	public Integer getUId() {
		return this.UId;
	}

	public void setUId(Integer UId) {
		this.UId = UId;
	}

	@Column(name = "u_loginname", length = 20)
	public String getULoginname() {
		return this.ULoginname;
	}

	public void setULoginname(String ULoginname) {
		this.ULoginname = ULoginname;
	}

	@Column(name = "u_name", length = 20)
	public String getUName() {
		return this.UName;
	}

	public void setUName(String UName) {
		this.UName = UName;
	}

	@Column(name = "u_password", length = 20)
	public String getUPassword() {
		return this.UPassword;
	}

	public void setUPassword(String UPassword) {
		this.UPassword = UPassword;
	}

	@Column(name = "u_tel", length = 20)
	public String getUTel() {
		return this.UTel;
	}

	public void setUTel(String UTel) {
		this.UTel = UTel;
	}

	@Column(name = "u_sex", length = 20)
	public String getUSex() {
		return this.USex;
	}

	public void setUSex(String USex) {
		this.USex = USex;
	}

	@Column(name = "u_mail", length = 20)
	public String getUMail() {
		return this.UMail;
	}

	public void setUMail(String UMail) {
		this.UMail = UMail;
	}

}